feat(scripts): pretty DMG layout — 128px icons centered in 700×420 window#60
Merged
Conversation
…ndow
Tauri's tauri.conf.json dmg config only supports windowSize + positions,
not iconSize. We need bigger icons + a proper centered layout, so I built
a custom DMG builder using hdiutil + AppleScript Finder customization.
· scripts/make-dmg.sh (NEW, ~140 lines)
- Stage signed .app + /Applications symlink in tmp dir
- hdiutil create UDRW with extra headroom (+20 MB so Finder has space
for .DS_Store + .fseventsd)
- Mount + osascript: iconView, no toolbar, 128 px icons, 700×420
window, icons at (200, 200) and (500, 200)
- Wait 5+2 s for Finder to flush .DS_Store (prior bug: detached too
early → layout reverted on open)
- Detach RW DMG → convert to UDZO with zlib-level=9
- Auto-cleans stale "/Volumes/DeepCode N" mounts from prior runs
- Verifies .DS_Store ended up on the volume before detach
· scripts/sign-and-notarize.sh — step 7 now calls make-dmg.sh instead
of the inline hdiutil create. Cleaner separation: pretty layout
isolated, sign+notarize flow unchanged.
End-to-end verified on a real signed+notarized DMG:
· Apple notarization: Accepted ✓
· Stapled ✓
· spctl: accepted, source=Notarized Developer ID ✓
· Open DMG: icons centered, big, layout persists across remounts
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
make-dmg.sh builds DMG via hdiutil + AppleScript so we can control iconSize (Tauri config doesn't expose it). Window 700×420, 128 px icons, centered at (200, 200) + (500, 200). sign-and-notarize.sh step 7 now delegates to it. Verified: Apple-accepted DMG with persistent layout.